package com.xueersi.interactivevideoeditor.manager
{
	import com.xueersi.interactivevideoeditor.model.Asset;
	
	import mx.collections.ArrayCollection;
	
	[Bindable]
	public class ResourceManager
	{
		private static var _instance:ResourceManager;
		
		public var resources:ArrayCollection ;		
		public function ResourceManager()
		{
			resources = new ArrayCollection();
		}
		
		public static function getInstance():ResourceManager
		{
			return (_instance || (_instance = new ResourceManager()));		
		}
		
		public function addResource(resource:Asset):void
		{
			resources.addItem(resource);	
		}	
	}
}